Word problems based on system of equations